<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
	<title>请假状态</title>
	<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>

	<table class="table table-striped table-bordered">
		<thead>
			<tr style="text-align:center;">
				<td>学号</td>
				<td>姓名</td>
				<td>状态</td>
				<td>请假原因</td>
				<td>请假时间</td>
				<td>编辑</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="user2" items="${data2 }">
				<tr style="text-align:center;">
					<td style="display:none;">${user2.id }</td>
					<td>${user2.user }</td>
					<td>${user2.studentName }</td>
					<td>${user2.studentState }</td>
					<td>${user2.why }</td>
					<td>${user2.time }</td>
					<td><input value="请假 / 销假" type="button" /></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<!-- 模态框（Modal） -->
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	    <div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
	                    &times;
	                </button>
	            </div>
	            <div class="modal-body">
                	<form action="<%=request.getContextPath() %>/qjxt/updataStudent" method="post">
						<input  name="studentName" style="width:200px;" placeholder="请输入学生姓名" type="text"><br />
						<input  name="why" style="width:200px;" placeholder="请输入请假原因(销假填无)" type="text"><br />
                		<input  name="time" style="width:200px;" placeholder="请输入请假原因(销假填无)" type="text"><br />
						<select name="studentState" style="width:80px;height:27px;">
							<option>正常</option>
							<option>请假</option>
						</select>
					</form><br />
	            </div>
	            <div class="modal-footer">
	                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	            </div>
	        </div>
	    </div>
	</div>
</body>

</html>